/*
 *
 * Copyright(c) 2010 Safelayer Secure Communications
 *
 * This is open source software, placed under the terms of the
 * GNU GENERAL PUBLIC LICENSE Version 3.
 * Please see: http://www.gnu.org/licenses/gpl-3.0.txt
 * 
 * Permission to use, copy, modify, and distribute this software
 * for any purpose and without fee is hereby granted, provided
 * that the above copyright notices appear in all copies and that
 * both the copyright notice and this permission notice appear in
 * supporting documentation.
 * 
 */
package com.neuralnoise.foaf.core;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Retrieve values from a property file related to Personal Profile Document.
 * 
 * @author victor.martinez <swtp@safelayer.com>
 * 
 */
public class PersonalProfileDocumentProperties {

	private String apiProperty;

	private String contactProperty;

	private String description;

	public PersonalProfileDocumentProperties() throws IOException {
		InputStream is = ClassLoader.getSystemResourceAsStream("foaf4j.properties");
		Properties prop = new Properties();
		prop.load(is);
		apiProperty = prop.getProperty("ppd.api");
		contactProperty = prop.getProperty("ppd.contact");
		description = prop.getProperty("ppd.description");
		is.close();
	}

	// Getters ------------------------------------------------------------------------------------

	public String getApiProperty() {
		return apiProperty;
	}

	public String getContactProperty() {
		return contactProperty;
	}

	public String getDescriptionProperty() {
		return description;
	}
}
